<template>
<div>
  <h2>我是Count组件</h2>
  <button @click="handle">累加count</button>
</div>
</template>


<script>
export default {
  name:"Child",
  methods:{
    handle(){
      this.$emit("changeCount",2)
    }
  }
}
</script>


<style></style>